package com.geek.factory.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 采购明细表
 * </p>
 *
 * @author author
 * @since 2025-06-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("purchase_order_detail")
@ApiModel(value="PurchaseOrderDetail对象", description="采购明细表")
public class PurchaseOrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "明细ID，主键自增")
    @TableId(value = "detail_id", type = IdType.AUTO)
    private Integer detailId;

    @ApiModelProperty(value = "采购ID")
    private Integer purchaseId;

    @ApiModelProperty(value = "原料ID")
    private Integer materialId;

    @ApiModelProperty(value = "采购数量")
    private Integer quantity;

    @ApiModelProperty(value = "采购单价")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "金额(数量×单价)")
    private BigDecimal amount;

    @ApiModelProperty(value = "已接收数量")
    private Integer receivedQuantity;

    @ApiModelProperty(value = "预计到货日期")
    private LocalDate expectedArrivalDate;

    @ApiModelProperty(value = "备注")
    private String remark;


}
